import request from '@/utils/request'
export function getContractList(data){
  return request({
    url: '/contract/contractPage',
    method:'get',
    params: data
  })
}
export function startApprove(data){
  return request({
    url: '/process/start',
    method:'get',
    params: data
  })
 }

export function addOrUpdate(data){
  return request({
    url: '/contract/createOrUpdateContract',
    method:'post',
    data:data
  })
}
export function delContract(data){
 return request({
  url:`/contract/${data}`,
  method:'delete'
})
}
export function getContract(data){
  return request({
    url: '/contract/'+data,
    method:'get',
  })
}
